﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PdxDemo
{
    public class CustomRegistrationBuilder : PDX.Services.RegistrationBuilder
    {
        public CustomRegistrationBuilder(PDX.Services.IServiceProvider provider)
            : base(provider)
        {
            //Blacklist<PDX.Validation.DataAnnotationsAdapter>();
        }

        public override void RegisterValidation()
        {
            base.RegisterValidation();

            Register<PDX.Validation.IValidationAdapter, FluentValidationDemo.FluentValidationAdapter>(
                () => new FluentValidationDemo.FluentValidationAdapter());
        }
    }
}
